package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 *   SpringBoot工程：
 *       经理：同学说 加入一个Servlet
 *       1、Servlet
 *       2、SpringMVC
 *       3、SpringBoot  ---   Servlet
 *
 *       断路器的监控请求非常Low 是Servlet的写
 *
 *
 *
 * @author zhaojian
 */
@SpringBootApplication
@EnableEurekaClient
//开启Hystrix
@EnableCircuitBreaker
//开启断路器监控
@EnableHystrixDashboard
//扫描Hystrix的servlet所在包
@ServletComponentScan("com.qf.servlet")
public class SearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}